package tutorial.java.swing;

import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class LabelDemo extends JFrame{

	public LabelDemo(){
		setSize(400, 300);
		setVisible(true);
		setLocation(500, 250);
		setResizable(false);
		JLabel label = new JLabel("Study And Share");
		add(label);
		label.setText("Nguyễn Văn Hai");
		label.setToolTipText("Love Oanh");
		label.setForeground(Color.BLUE);
	}
	
	public static void main(String[] args){
		LabelDemo labelDemo = new LabelDemo();
	}
}
